package com.alex;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.alex.pojo.Person;

public class Application01_property {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans01.xml");

        Person person = ctx.getBean("person", Person.class);
        person.getDog().show();
        person.getCar().show();
    }
}
